package bpm.dao.impl.manage;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import bpm.domain.manage.DictionaryType;
/**
 * 
 * @author ZhaoWangLong Aug 5, 2011
 *
 */
public class DictionaryTypeRowMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int i) throws SQLException {
		DictionaryType dictType=new DictionaryType();
		dictType.setId(rs.getString("ID"));
		dictType.setName(rs.getString("NAME"));
		dictType.setSortIndex(rs.getInt("SORT_INDEX"));
		dictType.setCreateTime(rs.getDate("CREATE_TIME"));
		dictType.setLastUpdateTime(rs.getDate("LASTUPDATE_TIME"));
		dictType.setDescription(rs.getString("DESCRIPTION"));
		return dictType;
	}

}
